from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options
dr = webdriver.Chrome(options=options)
url = r'http://192.168.190.130/upload/'
dr.get(url)

#注册
dr.find_element(By.XPATH,'//*[@id="lsform"]/div/div/table/tbody/tr[2]/td[4]/a').click()
sleep(1)
dr.find_element(By.XPATH,'//*[@id="wIDZp8"]').send_keys('test333')
sleep(1)
dr.find_element(By.XPATH,'//*[@id="vqL88k"]').send_keys('123456')
sleep(1)
dr.find_element(By.XPATH,'//*[@id="Iyz22Y"]').send_keys('123456')
sleep(1)
dr.find_element(By.XPATH,'//*[@id="xOmGZG"]').send_keys('test333@qq.com')
sleep(1)
dr.find_element(By.XPATH,'//*[@id="reginfo_a_btn"]').click()
sleep(6)
dr.quit()